package com.hwh.trafficdemo.dao;

import com.hwh.trafficdemo.entity.AppInfo;
import com.hwh.trafficdemo.entity.Routes;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface IAppInfoDao {
    @Select("SELECT app_version FROM app_info WHERE app_name = #{appName}")
    String getAppVersion(String appName);

    @Insert("INSERT into app_info(app_name,app_version,app_opinion) values (#{appName},#{appVersion},#{appOpinion})")
    int savaOpinion(AppInfo appinfo);
}
